#include "mainwindow.h"
#include <QApplication>
#include <QTranslator>
#include <QSettings>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    a.setOrganizationName("SXTech");
    a.setApplicationName("DataInsight");
    QSettings::setDefaultFormat(QSettings::IniFormat);

    QString appPath = a.applicationDirPath();
    QTranslator transQt;
    transQt.load("qt_zh_CN", appPath);
    a.installTranslator(&transQt);
    QTranslator transDI;
    transDI.load("datainsight_zh_CN", appPath);
    a.installTranslator(&transDI);

    MainWindow w;
    w.show();

    return a.exec();
}
